package ma.ac.onousc.gestionfi.EngagementPaiement.model;

import java.io.Serializable;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQuery;

@Entity
@NamedQuery(name = "Autres.findByRB", query = "select atr from Autres atr where atr.rubriqueBudgetaire=:rb")
@DiscriminatorValue("Autre")
public class Autres extends Engagement implements Serializable {

	private static final long serialVersionUID = 1L;

	private String intituleAutre;

	@ManyToOne(fetch = FetchType.EAGER)
	private Beneficiaire beneficiaire;



	public Autres() {
		super();
	}
	
	

	public Autres(String intituleAutre) {
		super();
		this.intituleAutre = intituleAutre;
	}

	public String getIntituleAutre() {
		return intituleAutre;
	}

	public void setIntituleAutre(String intituleAutre) {
		this.intituleAutre = intituleAutre;
	}

	public Beneficiaire getBeneficiaire() {
		return beneficiaire;
	}

	public void setBeneficiaire(Beneficiaire beneficiaire) {
		this.beneficiaire = beneficiaire;
	}

}
